home *** CD-ROM | disk | FTP | other *** search
- Path: info.uci.kun.nl!news
- From: Flop <mooij@dds.nl>
- Newsgroups: comp.lang.c++
- Subject: HELP: interrupt keyword in Borland C++ 4.02
- Date: Wed, 14 Feb 1996 22:25:34 +0100
- Organization: Universitair Centrum Informatievoorziening, The Netherlands
- Message-ID: <3122534E.219C@dds.nl>
- NNTP-Posting-Host: pstn01.extern.kun.nl
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win95; I)
-
- Hi all!
-
- I use BCC32.EXE of Borland C++ 4.02.
- But this compiler doesn't seem to know
- the keyword 'interrupt'. Is this keyword
- removed in the newer versions of Borland
- C++ or is it just renamed?
-
- In fact I don't need 'interrupt', I can also
- do it this way:
-
- void Handler(...)
- {
- asm pushad
-
- asm popad
- asm iretd
- }
-
- But then, BCC generates the folowing code:
-
- _Handler:
- push ebp <--- I don't want this instruction, it causes Page Faults ;-)
- pushad
- popad
- iretd
- pop ebp
- ret
-
- Is there any way to prevent BCC from generating the 'push ebp'
- code?
-
- All your help is appreciated.
- Thanks in advance,
-
- Joris
-